package com.nifostasky.comic.entitys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户收藏漫画信息表(CoCollectInfo)表实体类
 *
 * @author makejava
 * @since 2022-02-13 15:53:16
 */
@Data
@TableName(value = "co_collect_info")
@ApiModel(value = "CoCollectInfo类", description = "用户收藏漫画信息表")
public class CoCollectInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键:
     * 表id
     */
    @ApiModelProperty(value = "表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 外键,关联sys_user(用户信息)表id
     */
    @ApiModelProperty(value = "外键,关联sys_user(用户信息)表id ")
    @TableField(value = "user_id")
    private Long userId;

    @ApiModelProperty(value = "用户名")
    @TableField(value = "user_name")
    private String userName;


    /**
     * 外键,关联co_spider_info(已爬取漫画)表id
     */
    @ApiModelProperty(value = "外键,关联co_spider_info(已爬取漫画)表id ")
    @TableField(value = "spider_id")
    private Long spiderId;

    /**
     * 外键,关联co_detailed_info(漫画详情)表id
     */
    @ApiModelProperty(value = "外键,关联co_detailed_info(漫画详情)表id ")
    @TableField(value = "detailed_id")
    private Long detailedId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
    private Date createTime;
}